package com.qj.yantaishan.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qj.yantaishan.common.annotation.Excel;
import com.qj.yantaishan.common.core.domain.BaseEntity;

/**
 * 财务记录对象 shanglala_financial_record
 * 
 * @author qihe
 * @date 2022-07-22
 */
public class FinancialRecord
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long pigcmsId;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long storeId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 收入 负值为支出 */
    @Excel(name = "收入 负值为支出")
    private BigDecimal income;

    /** 类型 1订单入账 2提现 3退款 4系统退款 5分销 */
    @Excel(name = "类型 1订单入账 2提现 3退款 4系统退款 5分销")
    private Integer type;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 交易号 */
    @Excel(name = "交易号")
    private String tradeNo;

    /** 时间 */
    @Excel(name = "时间")
    private Long addTime;

    /** 状态 1进行中 2退款 3成功 4失败 */
    @Excel(name = "状态 1进行中 2退款 3成功 4失败")
    private Integer status;

    /** 用户订单id,统一分销订单 */
    @Excel(name = "用户订单id,统一分销订单")
    private Long userOrderId;

    /** 分销利润 */
    @Excel(name = "分销利润")
    private BigDecimal profit;

    /** 是否店铺收款 0 否 1 是 */
    @Excel(name = "是否店铺收款 0 否 1 是")
    private Integer storeOwnPay;

    /** 备注 */
    @Excel(name = "备注")
    private String bak;

    /** 退货id */
    @Excel(name = "退货id")
    private Long returnId;

    /** 供货商/经销商id */
    @Excel(name = "供货商/经销商id")
    private Long supplierId;

    /** 是否夺宝转移结算：0否 1是 */
    @Excel(name = "是否夺宝转移结算：0否 1是")
    private Integer unitaryBalance;

    /** 拼团退款id */
    @Excel(name = "拼团退款id")
    private Long tuanRefundId;

    /** 是否为人才推荐奖 0否 1是 */
    @Excel(name = "是否为人才推荐奖 0否 1是")
    private Integer isTalent;

    public void setPigcmsId(Long pigcmsId) 
    {
        this.pigcmsId = pigcmsId;
    }

    public Long getPigcmsId() 
    {
        return pigcmsId;
    }
    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setIncome(BigDecimal income) 
    {
        this.income = income;
    }

    public BigDecimal getIncome() 
    {
        return income;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }
    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }
    public void setTradeNo(String tradeNo) 
    {
        this.tradeNo = tradeNo;
    }

    public String getTradeNo() 
    {
        return tradeNo;
    }
    public void setAddTime(Long addTime) 
    {
        this.addTime = addTime;
    }

    public Long getAddTime() 
    {
        return addTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setUserOrderId(Long userOrderId) 
    {
        this.userOrderId = userOrderId;
    }

    public Long getUserOrderId() 
    {
        return userOrderId;
    }
    public void setProfit(BigDecimal profit) 
    {
        this.profit = profit;
    }

    public BigDecimal getProfit() 
    {
        return profit;
    }
    public void setStoreOwnPay(Integer storeOwnPay) 
    {
        this.storeOwnPay = storeOwnPay;
    }

    public Integer getStoreOwnPay() 
    {
        return storeOwnPay;
    }
    public void setBak(String bak) 
    {
        this.bak = bak;
    }

    public String getBak() 
    {
        return bak;
    }
    public void setReturnId(Long returnId) 
    {
        this.returnId = returnId;
    }

    public Long getReturnId() 
    {
        return returnId;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setUnitaryBalance(Integer unitaryBalance) 
    {
        this.unitaryBalance = unitaryBalance;
    }

    public Integer getUnitaryBalance() 
    {
        return unitaryBalance;
    }
    public void setTuanRefundId(Long tuanRefundId) 
    {
        this.tuanRefundId = tuanRefundId;
    }

    public Long getTuanRefundId() 
    {
        return tuanRefundId;
    }
    public void setIsTalent(Integer isTalent) 
    {
        this.isTalent = isTalent;
    }

    public Integer getIsTalent() 
    {
        return isTalent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pigcmsId", getPigcmsId())
            .append("storeId", getStoreId())
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("income", getIncome())
            .append("type", getType())
            .append("balance", getBalance())
            .append("paymentMethod", getPaymentMethod())
            .append("tradeNo", getTradeNo())
            .append("addTime", getAddTime())
            .append("status", getStatus())
            .append("userOrderId", getUserOrderId())
            .append("profit", getProfit())
            .append("storeOwnPay", getStoreOwnPay())
            .append("bak", getBak())
            .append("returnId", getReturnId())
            .append("supplierId", getSupplierId())
            .append("unitaryBalance", getUnitaryBalance())
            .append("tuanRefundId", getTuanRefundId())
            .append("isTalent", getIsTalent())
            .toString();
    }
}
